home *** CD-ROM | disk | FTP | other *** search
- on keyboard
- global shipx, fire1, fire2, fire3, fire4, key, shipcast, done, freeze, next, fire1x, fire1y, fire2x, fire2y, fire3x, fire3y, fire4x, fire4y, men
- if shipcast = 1 then
- if the optionDown = 1 then
- set shipx to shipx + 6
- end if
- if the controlDown = 1 then
- set shipx to shipx - 6
- end if
- if shipx < 20 then
- set shipx to 20
- end if
- if shipx > 572 then
- set shipx to 572
- end if
- when keyDown then keyput
- if key = 49 then
- set key to 0
- if fire1 = 0 then
- puppetSound(1, "LASER")
- set fire1 to 1
- set fire1x to shipx
- set fire1y to 315
- else
- if fire2 = 0 then
- puppetSound(1, "LASER")
- set fire2 to 1
- set fire2x to shipx
- set fire2y to 315
- else
- if fire3 = 0 then
- puppetSound(1, "LASER")
- set fire3 to 1
- set fire3x to shipx
- set fire3y to 315
- else
- if fire4 = 0 then
- puppetSound(1, "LASER")
- set fire4 to 1
- set fire4x to shipx
- set fire4y to 315
- end if
- end if
- end if
- end if
- end if
- end if
- if shipcast = 2 then
- set the castNum of sprite 40 to 13
- set the locH of sprite 40 to shipx
- set the locV of sprite 40 to 340
- set shipcast to 1 + shipcast
- else
- if shipcast = 3 then
- set the castNum of sprite 40 to 14
- set the locH of sprite 40 to shipx
- set the locV of sprite 40 to 340
- set shipcast to 1 + shipcast
- else
- if shipcast = 4 then
- set the castNum of sprite 40 to 15
- set the locH of sprite 40 to shipx
- set the locV of sprite 40 to 340
- set shipcast to 1 + shipcast
- else
- if shipcast = 5 then
- set the castNum of sprite 40 to 14
- set the locH of sprite 40 to shipx
- set the locV of sprite 40 to 340
- set shipcast to 1 + shipcast
- else
- if shipcast = 6 then
- set the castNum of sprite 40 to 13
- set the locH of sprite 40 to shipx
- set the locV of sprite 40 to 340
- set shipcast to 1 + shipcast
- else
- if shipcast > 6 then
- if men = 1 then
- set the castNum of sprite 40 to 21
- set the locH of sprite 40 to 296
- set the locV of sprite 40 to 260
- else
- set the castNum of sprite 40 to 3
- set the locH of sprite 40 to 296
- set the locV of sprite 40 to 500
- end if
- set shipcast to 1 + shipcast
- if shipcast = 60 then
- set done to 1
- end if
- else
- set the castNum of sprite 40 to shipcast
- set the locH of sprite 40 to shipx
- set the locV of sprite 40 to 340
- end if
- end if
- end if
- end if
- end if
- end if
- end
-